package com.group2.equipment.feign;

import com.group2.equipment.feign.fallback.ActiveMonitoringFeignFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author binghan
 * @version 1.0
 * @description: TODO 摄像头主动监测人 调用功能判断是否有权限
 * @date 2022/6/7 16:42
 */
@FeignClient(value ="aaa",fallback = ActiveMonitoringFeignFallback.class)
public interface ActiveMonitoringFeign {

    /**
     * 返回成功 or 失败
     * @param id
     * @param address
     * @return
     */
    @GetMapping("/func/face/uid/{uid}/address/{address}")
    public String face(@PathVariable("uid") Integer id, @PathVariable("address")String address);
}
